package com.xxy.crm.dao;

import com.xxy.crm.base.BaseMapper;
import com.xxy.crm.vo.User;
import org.apache.ibatis.annotations.MapKey;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserMapper extends BaseMapper<User,Integer> {
    //根据⽤户名查询⽤户对象
    User queryUserByUserName(String userName);

/*    //查询所有的销售人员
    List<Map<String,Object>> queryAllSales();*/
// 查询所有的销售人员
/*@SuppressWarnings("MybatisXMapperMethodInspection")*/
/*    @MapKey("id")*/
    List<Map<String, Object>> queryAllSales();

}